# -*- coding: utf-8 -*-
# @Time : 2019/1/14 18:24
# @Author : Administrator
# @File : find_id.py
# @Project : python
# @title : 基础功能 -- 登录解密
import requests

excel_path = "../../woniuboss_interface/data/test_data.xlsx"
host = "http://192.168.2.154:8080/WoniuBoss2.5"
def Login(username="wncd000",password="woniu123",checkcode = "0000"):
    ses = requests.session()
    ses.post(url = host+"/log/userLogin",   ## 成功登录
            data = {"userName":username,"userPass":password,"checkcode":checkcode})
    ses.post(url=host+"/second?vp=woniu123",  ## 解密
               data={"vp": "woniu123"})
    return ses,host,excel_path
